var tree = {
	setting:{
		isSimpleData: true,
		treeNodeKey: "mid",
		treeNodeParentKey: "pid",
		showLine: true,
		root:{ 
			isRoot:true,
			nodes:[]
		}
	},
	loadTree:function(){
//		$("#tree").ztree(tree.setting);
		$.post("menuItemAction_showAllMenuItem.do",null,function(data){
			$("#tree").zTree(tree.setting,data); //注意此处容易出错。
		});
	}	
};

$().ready(function(){
	tree.loadTree();
});